Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • QScrollArea size is the same with is child widget but it display scroller bar.

    Solved
    7
    0 Votes
    7 Posts
    522 Views
    J
    @Pl45m4 Hi, I use below code to adjust widget size and the scroll bar is hide.Thank you very much. QSize sizeTemp = viewport()->size(); testWidget->resize(sizeTemp);
  • QGraphicsTextItem * and void * conversion error

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    K
    Thank you all for your help. Based on your analysis, here is my solution, Create section auto pTextItem=new QGraphicsTextItem("QGraphicsTextItem",pV); auto id=reinterpret_cast<void*>(dynamic_cast<QGraphicsItem*>(pTextItem)); deletion void DeleteGraphics(void* id) { if (id==nullptr) return; auto scene=m_pQGraphicsView->scene(); auto items=scene->items(); QGraphicsItem* item = static_cast<QGraphicsItem*>(id); if(items.contains(item)){ scene->removeItem(item); delete item; } }
  • advanced docking system - close tab button highlighted

    Unsolved
    2
    0 Votes
    2 Posts
    236 Views
    S
    You might want to post this question to Qt advanced docking systems github
  • Inconsistent borders when drawing a custom translucent widget using QPainterPath

    Unsolved
    1
    0 Votes
    1 Posts
    134 Views
    No one has replied
  • QTabWidget - unable to load multiple documents in multiple tabs

    Solved
    11
    0 Votes
    11 Posts
    719 Views
    Pl45m4P
    @JonB said in QTabWidget - unable to load multiple documents in multiple tabs: In case that made a difference In case @blossomsg forgot to implement some function which is needed for QPdfView or so... Like Q[...]Model derived class without implementing setData Good that it works now
  • Is it possible to sync. selection of 2 GraphicScenes while keeping mutliselection ?

    Solved
    5
    0 Votes
    5 Posts
    400 Views
    JonBJ
    @Gilboonet Oh, OK.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Compiling for macOS - what compilers are supported please?

    Unsolved
    5
    0 Votes
    5 Posts
    631 Views
    SGaistS
    Hi, Non Apple clang is officially unsupported territory. It's also untested. Xcode is the IDE/Suite of tools but the compiler is clang for quite some time now.
  • Enum value to QString

    Solved
    12
    0 Votes
    12 Posts
    21k Views
    osirisgothraO
    @raven-worx awesome, this pointed me in the right direction. In my case I needed the keyboard combo and key name in string form, so QMetaEnum::fromType was the call I was trying to find, thanks for that.
  • Drag and drop QDockWidget to QTabWidget

    3
    0 Votes
    3 Posts
    4k Views
    M
    Apparently, there is a nice extension that provides really nice support for all of this: https://pypi.org/project/PySide6-QtAds/
  • How can I change the pointSize of a QLabel?

    Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    JonBJ
    @Z3PHYR This attempts to animate/increment a QFont object, which of course makes no sense --- what could it mean/how could it be achieved? You want to animate the font size, which is a number. The types which you can animate are listed in https://doc.qt.io/qt-6/qvariantanimation.html#details. Have a look at https://stackoverflow.com/a/68131633/489865, and translate to C++. As the guy there says: There is no property for the font size, though, so there are two possibilities: create a custom property (by using the pyqtProperty decorator in PyQt); use a QVariantAnimation, which is not bound to any property; Pick whichever way you prefer.
  • QWebEngineview does not let debugger exit

    Unsolved
    2
    0 Votes
    2 Posts
    169 Views
    No one has replied
  • Issue loading and displaying STL file with Qt3D

    Solved
    2
    0 Votes
    2 Posts
    333 Views
    P
    So @karlphillip on StackOverflow helped me resolve this issue. It turned out the issue had to do with scaling the STL mesh so that it became visible. I had to scale it down to < .01 and there it was. I hope this helps someone else.
  • The function window()->windowHandle(); always returns nullptr in my custom widget.

    Solved
    5
    0 Votes
    5 Posts
    479 Views
    JonBJ
    @Paul-Xu If it works (I would have put it after the QWidget::showEvent(event);) then it's fine, what is not "elegant" about it?
  • scp does download all files when embeded in a QProcess

    Solved
    4
    0 Votes
    4 Posts
    471 Views
    O
    Thanks for your advices, I have already implemented them. Actually, my problem was that all files where not yet created in the remoted folder before I start the scp command.
  • What kind of signals can be emitted in GUI applications before event loop starts

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    JonBJ
    @abhic As @SimonSchroeder says, not sure why it should be an issue. But if it really bothers you, don't forget you could delay calling the connect()s/attaching your views to models etc. till the event loop has started by doing them in a function on a QTimer::singleShot(0) which you set off just before the app.exec().
  • In need of a 64-bit unsigned QSpinBox (to fit large numbers like pointers, etc)

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    GaoboG
    @JonB I'm getting some errors when editing the link🌚 Thanks for the correction.
  • Any solutions on Windows terminals?

    Unsolved winterm-emulate qwidget activex-control
    7
    0 Votes
    7 Posts
    935 Views
    SGaistS
    Hi, KDE's Konsole also supports Windows, it might be easier to integrate it in your project.
  • QVideoFrame::map() only allows one call?

    Unsolved
    6
    0 Votes
    6 Posts
    567 Views
    C
    Still cannot post code "Post content was flagged as spam by Akismet.com" The code in the image gives me --- 1.1: map true isMapped true isWritable true --- 1.2: map true isMapped false isWritable false --- 2.0: map true isMapped true isWritable false --- 2.1: map false isMapped true isWritable false --- 2:2 map false isMapped false isWritable false Without any sleep() it does indeed work, but I mean in reality there is some delay between frames in a video, right? I feel there is a bug somewhere. [image: ee58c7dc-25af-4b1b-a392-9ae33ccea846.png]
  • QSettings Language

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    PerdrixP
    @JonB Nothing to do with QSettings. It was a Unix locale issue. It turns out that the QSettings stuff was left there by the original developer of that code to allow testing without switching the language of his system. It mightily confused me ...