@legitnameyo This is not how it works. You will need to subclass QPushButton and override http://doc.qt.io/qt-5/qwidget.html#mousePressEvent
You can find an example here: http://doc.qt.io/qt-5/qtwidgets-widgets-scribble-example.html
just use the filePath without further modification, its already the complete path.
This code
QDir d = QFileInfo(filePath).absoluteDir();
QString absolute=d.absolutePath();
will lead you to the dir above the selected path...
@aney
Yeah when meta compiler doesn't run, it all get a bit strange. :)
In first post , under it. to the right. is Topic Tools button. It can mark as solved.
Maybe there's a widget that you didn't put into a layout? The default position of such widget is in the upper left corner and the 100px sound like some default size.
Try adding this in your main:
qApp->setStyleSheet("QWidget { border: 2px solid red;}");
This should put a red frame around every widget so you'll see if anything's there.