Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Problem with item positioning

    Unsolved
    2
    0 Votes
    2 Posts
    495 Views
    A
    When you place fruit, you do that within the GraphicsScene. So it's the size of the GraphicsScene that matters, not the size of the GraphicsView. QGraphicsScene::sceneRect() might be what you need.
  • How to configure qt creator together using cmake on macOS

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    waschbaerW
    Qt 5.8 After several times, I have this cmake tools in the "manage kits" windows. But it seems like I link 32 bits but I should link 64bit....But I don't know how. I have tried following in building environments Set Path: add this at end: /usr/local/bin Set CC: /usr/bin/cc Set PKG_CONFIG_PATH: /Users/yuminsun/opencv/build/unix-install/opencv.pc** And the message is still: No tool chain set up in kit "Desktop Qt 5.8.0 clang 64bit" for "C". No tool chain set up in kit "Desktop Qt 5.8.0 clang 64bit" for "C". 2017-12-19 13:18:52.433 Qt Creator[25679:2490412] IMKClient Stall detected, please Report your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_bundleIdentifierWithReply:) block performed very slowly (1.12 secs). Warning: Could not determine default QPA plugin for static Qt. Warning: Could not determine default QPA plugin for static Qt. QUnifiedTimer::stopAnimationDriver: driver is not running And press control+B, it gives: :-1: error: symbol(s) not found for architecture x86_64 :-1: error: linker command failed with exit code 1 (use -v to see invocation)
  • A Double Buffering example

    Unsolved
    11
    0 Votes
    11 Posts
    6k Views
    tomyT
    @Wieland When I tested the code by F10 and checkpoints, I got that message in the main() in Plotter plotter;, so I put another checkpoint in the Plotter's constructor to get into it. The executor passed all expressions: setBackgroundRole(QPalette::Dark); setAutoFillBackground(true); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); setFocusPolicy(Qt::StrongFocus); rubberBandIsShown = false; zoomInButton = new QToolButton(this); zoomInButton->setIcon(QIcon(":/images/zoomin.png")); zoomInButton->adjustSize(); connect(zoomInButton, SIGNAL(clicked()), this, SLOT(zoomIn())); zoomOutButton = new QToolButton(this); zoomOutButton->setIcon(QIcon(":/images/zoomout.png")); zoomOutButton->adjustSize(); connect(zoomOutButton, SIGNAL(clicked()), this, SLOT(zoomOut())); setPlotSettings(PlotSettings()); except the last one so I thought it is the source of the issue. Anyway, you used a method which led you to the website which has written that message too that seems to be correct. What was that method that resulted in a different output from mine? I used checkpoints and F10. I'm reading the whole code and its explanation in the book to figure the program out completely. After that I'll ask for a remedy no to have that message for the program.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • How do I access widgets from another class?

    Unsolved
    6
    0 Votes
    6 Posts
    4k Views
    T
    @SnuggleKat you have to inherit second class from qobject.. ‘’’class SecondClass:public QObject’’’
  • QtOpenGL and GL Libraries conflict

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    A
    @wrosecrans Thank you for your reply. What do you prefer ? I want to view stl file, I found different examples like e8johan stlviewer from github. It works on ubuntu in my computer but when I downloded it on my raspberry pi it gives conflict error. Stlviewer both uses opengl and GL libraries at the same time.
  • Qt Style Sheets cascading classes selectors

    Solved qcss stylesheet
    29
    1 Votes
    29 Posts
    35k Views
    JonBJ
    To summarise for anyone reading this. Thanks to the answers above. You can assign a dynamic property, with a name and value of your choice, via QWidget.setProperty("cssClass", "large"). The stylesheet can match this via selector *[cssClass="large"] { ... }. You can assign multiple values to the property via QWidget.setProperty("cssClass", [ "bold", "large", "rounded" ]). (Or it accepts a space-separated string via "bold large rounded".) The stylesheet can match one of the values via selector *[cssClass~="large"] { ... } (note the ~=). Note that property named class is a special one, referring to the Python/C++ code class of the widget, which you probably should not assign to.
  • qt3d how to render custom vertices which can be composed a set of triangle

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    J
    could anyone know how the render the no repeat point with QT3D
  • QFileSystemWatcher problem

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @Goffer Just to be clear: this is an NFS/inotify issue/limitation, nothing to do with QFileSystemWatcher per se.
  • QPushButton::clicked(bool) use

    Solved
    5
    0 Votes
    5 Posts
    8k Views
    ivanicyI
    Thank you very much, I forgot this detail!!
  • I need to delete objects in mainwindow?

    10
    0 Votes
    10 Posts
    17k Views
    B
    @jsulm thx I got it, ui is not a QObject. I have mistaken 'ui' as a QObject, and setUpUi(MainWindow) is setting parent for 'ui', which is unappropriate.
  • 0 Votes
    9 Posts
    2k Views
    O
    thank you very much!
  • When import the stl file very lager such as more than 2GB ,the QMesh will cant load

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    J
    i use these api to load my customized mesh parsed from a stl file
  • How to build a Lib

    Solved
    4
    0 Votes
    4 Posts
    696 Views
    jsulmJ
    @Kofr said in How to build a Lib: CALCLIB_COMMON_DLLSPEC double DoIt(int TypeWork, double OperandA, double OperandB, int& ErrorCode); Why do you name the first parameter same as your first enum (TypeWork) and same for ErrorCode?! Don't you mean: CALCLIB_COMMON_DLLSPEC double DoIt(CalcLib::TypeWork typeWork, double OperandA, double OperandB, CalcLib::ErrorCode &errorCode); I can build your project after adding #include <QtCore/QtGlobal> in calclib.h
  • Overloading QDataStream '<<' and '>>' operator help

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    joeQJ
    @Fwomp I modified my answer.
  • This topic is deleted!

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

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

    Unsolved
    5
    0 Votes
    5 Posts
    38 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    32 Views
  • how to render .slc fil in qt from opengl c++

    Moved Unsolved
    2
    0 Votes
    2 Posts
    555 Views
    mrjjM
    Hi You mean a SLC - layered contour file? Unless you can find a parser for that format, i think you will have to hand write it and then draw it using basic opengl features.