Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Is it possible to draw a colored rectangle on a pushButton?

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    mrjjM
    @Prmego np. please mark as solved if possible.
  • How to add many images into label

    Unsolved images
    5
    0 Votes
    5 Posts
    2k Views
    B
    @SGaist Thank you! Right now I am just looking around yet... I will read the introduction and I will be back for sure :)
  • Clearing a QTreeWidget in CustomContextMenuRequest causes crash

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    P
    @VRonin said in Clearing a QTreeWidget in CustomContextMenuRequest causes crash: QTreeWidgetItem Thank you very much, that I did not see this. The changedModelSelection(QTreeWidgetItem* currentItem, QTreeWidgetItem* oldItem) which is called when a selection is changed in the tree wants to do an update, but as there are no objects left the currentItem is null and there for causes an exception when I want to do something with it. 4 days strugling for this, haha.
  • Indefinite QProgressBar with only left to right, left to right , left to right

    Unsolved
    3
    0 Votes
    3 Posts
    712 Views
    raven-worxR
    @Wieland i guess thats what he is already doing. He just wants the appearance to be different. @inforathinam the problem is that there is no easy way to do so. You can play around with QStyle's subelements to paint a progressbar of your desire. Use the sub elements QStyle::SE_ProgressBarGroove QStyle::SE_ProgressBarContents QStyle::SE_ProgressBarLabel QStyle::SE_ProgressBarLayoutItem for painting. For the painting of QStyle::SE_ProgressBarContents try to translate from left to right the painter and also set a clipping rect for it. You will have to do the animation also by yourself
  • QTreeWidget expand button style

    Unsolved
    2
    0 Votes
    2 Posts
    620 Views
    raven-worxR
    @nxMan i haven't tried it, but you can try it ;) Use QStyleFactory to create an older Windows style and set it on the widget. QStyle * style = QStyleFactory::create("..."); //check QStyleFactory::keys() for possible values treeWidget->setStyle( style );
  • Getting Linker error for my dll

    Solved
    11
    0 Votes
    11 Posts
    5k Views
    P
    Ok. If anyone else ever encounters this issue, I found my own solution thanks to this article: https://forum.qt.io/topic/20117/error-lnk-2019-when-merging-qt-application-with-an-existing-mfc-application Even though it is using a different set of libraries the solution was the same: to remove the qtmain.lib that is automatically added as a linked dependency when using the Qt project wizard to create a Qt project in Visual Studio.
  • What is the correct way of paint my own background of widgets?

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    M
    @Chris-Kawa I follow your instruction and succeed. But It's not so smart, I will spend some time to read QT Source, and find out how the QLabel class being designed. I manually add height and font point size to the ShapedTag, and the function setText will calculate the widget width, and at last in funtion minimumSizeHint return the QSize I have calculated.
  • connect() in Debug and Release build differs

    Solved
    3
    0 Votes
    3 Posts
    677 Views
    jensen82J
    @mrjj : Thank you! Problem solved...the build process was the problem. It did not rebuild because of date-issues :-)
  • Parameters in creating window

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    raven-worxR
    @Eugene404 almost :) in the definition default parameters are not allowed. But yes, the missing pointer was what i meant.
  • Using QProcess whilst in IDE

    Unsolved
    4
    0 Votes
    4 Posts
    915 Views
    jsulmJ
    @Tim-Webster QtCreator prepares the environment before starting your app, this can have some effects. You really should set timeout to some value and check what happens (stderr and stdout output) and connect error signal to a slot.
  • Is there any correlation between matrix ::inverse in QGraphicsView and fourth quardrant

    Unsolved
    1
    0 Votes
    1 Posts
    370 Views
    No one has replied
  • Multithreading using qt

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    VRoninV
    https://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • QSystemTrayIcon Message on MacOS without Buttons

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    SGaistS
    Good to know, thanks !
  • Qt Video Widget / Video Player black borders depending on the scale

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You'll have to manage that yourself. IIRC you can find several solutions on this forum for that. Looks for Qt widget aspect ratio or maybe take the Flow Layout example as inspiration to manage that particular widget.
  • can not download open-source package from China

    Unsolved
    3
    0 Votes
    3 Posts
    724 Views
    SGaistS
    Hi and welcome to devnet, If you want to use the OpenSource version, then there's no need to login. Just skip that part and continue with installation.
  • Generate Visual Studio Solution in another directory

    Unsolved
    2
    0 Votes
    2 Posts
    663 Views
    sanojsubranS
    Hi, Run the qmake command from where you want to generate the project file. For example, If you want to create the project file inside the "vs2005dir", access the folder through command line and run qmake from there. qmake <relevant arguments> ../project.pro Regards, San