Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Object::connect: No such slot QTreeWidget::on_toolButton_clicked()

    3
    0 Votes
    3 Posts
    2k Views
    siropS
    Yes, the error message is no longer there. Thanks.
  • How can we fully maximize the app window

    3
    0 Votes
    3 Posts
    1k Views
    A
    Thanks! was pretty simple
  • [Solved] Problem switching between multiple QGLWidgets

    3
    0 Votes
    3 Posts
    3k Views
    K
    welcome to devnet Good to know that you have solved your issue. It is also good to leave your input here for inspiration for others. You may want to mark your input as [Solved] in the title. Go to first post at the right under your avatar is a edit field. This allows you to edit this post and the title line. I will do for you this time.
  • [Solved] Changing the color of a QFrame

    2
    0 Votes
    2 Posts
    5k Views
    M
    There is no direct way to set the line color (something like "setColor(foo)" does not exist). You either do need to change the palette, or use CSS style sheets. The latter is usually simpler and slightly slower.
  • Figure out what database i am connected to

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is QIdentityProxyModel the right solution for merging models?

    14
    0 Votes
    14 Posts
    7k Views
    N
    Indeed. It'll just be a case of performance if i just stick the flags into the source model / have another model and sync the contact part with the original model and build on top of it. For now i'm gonna go with option 1 cos it seems obvious enuff to be a better performance solution
  • [SOLVED]How to play gif animation in QGraphicsView widget

    3
    0 Votes
    3 Posts
    15k Views
    A
    Thanks worked like a charm!
  • Tab order problem in widget

    3
    0 Votes
    3 Posts
    2k Views
    S
    I created widget using QT Designer.Tab order I set using "Edit Tab order" in QT Designer.
  • Qt assistant translation files

    4
    0 Votes
    4 Posts
    2k Views
    G
    Ah, yes. I always forget that those exist too :-)
  • [SOLVED] Problem with QSortFilterProxyModel when changing of drive

    2
    0 Votes
    2 Posts
    2k Views
    A
    Hi, I have finally found the problem. In the post I used as "reference" they are creating a filter for a fixed directory. I have modified it, by addind the method SetRootDir, to be able to change of directory. But I have not seem that in the QT doc it is written that in this case I must call the method InvalidateFilter().
  • Qt+dbus: signals automatically connected and disconnected?

    2
    0 Votes
    2 Posts
    3k Views
    J
    I think I found the answer: The interface will connect signal to the dbus dynamically. I found @QDBusAbstractInterface::connectNotify@ in the source of QDBusAbstractInterface which calls connection->connectRelay. If you investigate a little bit further you will find the calls to connection->connect(..) somewhere. Vice versa you can find the same stuff for the disconnectNotify. So in my opinion: Smart Qt :D
  • How to change the font size in the QTextEdit from the QComboBox

    3
    0 Votes
    3 Posts
    3k Views
    L
    Connect the currentIndexChanged signal from the box to a slot where you set the font of the editor using QWidget::setFont().
  • How to do a Cross Compilation with Visual Studio 2008 and QT Library

    2
    0 Votes
    2 Posts
    2k Views
    L
    Hi, it is Qt not QT, and Qt Creator is just an editor... Also doing cross compilation is always tricky and I am not really a friend of it. But where is the problem to install e.g. VirtualBox and set up a Linux environment and compile your application natively. Then you can also debug it. Best
  • How to get the actual width of the QGraphicsScene

    2
    0 Votes
    2 Posts
    1k Views
    J
    Hi, I got the answer, it is through itemsBoundingRect
  • [SOLVED] QAction icon and title at same time

    3
    0 Votes
    3 Posts
    5k Views
    A
    Thanks, Lucas. QToolButton is actually what I need.
  • How to create persistent QRubberbands on QGraphicsView widget

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]QGraphicsView blurs an svg image on scaling (zooming)

    6
    0 Votes
    6 Posts
    5k Views
    A
    Thanks a lot, it worked like a charm. I needed image (QImage) object too, for some other features, so i retained that also. @if(fileInfo.fileName()!=fileInfo.baseName()+".svg") { displayImage.addPixmap(QPixmap::fromImage(image)); // add image to QGraphicsScene object } else if(fileInfo.fileName()==fileInfo.baseName()+".svg") { QGraphicsSvgItem *svgItem = new QGraphicsSvgItem( fileName ); displayImage.addItem( svgItem ); }@ @void aViewer::on_actionZoom_In_triggered() { ui->graphicsView->scale(1.1,1.1); }@
  • I am getting this error "QPainter::setPen: Painter not active"

    7
    0 Votes
    7 Posts
    48k Views
    A
    Thanks for your replies. Actually I am implementing a crop function. I want to draw a rectangle on an image displayed in qgraphicsview widget. the rectangle should be resizable on its ends using mouse. Once the user finalises the part of image, the program would use copy function of QImage to extract the cropped part. So, can you plz guide me with creating a resizable rectangle. If I reimplement the painter function of my mainwindow class, the rectangle gets displayed at the beginning. It should appear only when crop is invoked.
  • Qt Frozen Column example error when adding new column

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    M
    I don't believe nobody experienced this issue. :(