Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • 0 Votes
    1 Posts
    140 Views
    No one has replied
  • Qt no service found for - "org.qt-project. qt.mediaplayer "

    Solved
    2
    0 Votes
    2 Posts
    217 Views
    SGaistS
    Hi, Are you sure that the backend plugins are built ? Did you set them up properly in your .pro file ?
  • QtQuick bug in qt6.2 - TableView has no selectionModel property in Quick 2.2

    Unsolved
    1
    0 Votes
    1 Posts
    171 Views
    No one has replied
  • How to render only in a single QQuickItem?

    Unsolved
    1
    0 Votes
    1 Posts
    220 Views
    No one has replied
  • SpinBox showing a frame

    Unsolved
    3
    0 Votes
    3 Posts
    287 Views
    A
    Anyone, please?
  • custom minimize button in qml

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    raven-worxR
    @qAminzzz https://doc.qt.io/qt-5/qml-qtquick-window-window.html#showMinimized-method
  • customizing QTabWidget

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    M
    auto cutDir = QCoreApplication::applicationDirPath(); auto resFile = cutDir + "/TabWidget.css"; QFile cssFile(resFile); if( cssFile.open(QFile::ReadOnly)) { QString styleSheet = QLatin1String(cssFile.readAll()); ui->tabWidget->setStyleSheet(styleSheet); cssFile.close(); } auto tab1 = new QTabBar; auto tab2 = new QTabBar; auto tab3= new QTabBar; /*tabLayout->addWidget(btn); ui->tabWidget->setLayout(tabLayout);*/ // tab1->setObjectName(QStringLiteral("TabName")); ui->tabWidget->setTabsClosable(true); ui->tabWidget->addTab(tab1,QStringLiteral("网易中国")); ui->tabWidget->addTab(tab2,QStringLiteral("百度")); ui->tabWidget->addTab(tab3,QStringLiteral("爱奇艺")); and the file TabWidget.css is below: QTabWidget::pane { /* The tab widget frame */ border-top: 1px solid #C2C7CB; padding:20px; } QTabWidget::tab-bar { left: 2px; /* move to the right by 5px */ } QTabWidget{ background-color:#ffffff; } /* Style the tab using the tab sub-control. Note that it reads QTabBar not QTabWidget */ QTabBar::tab { /*margin:0px;/0 这里可以让tab 跟 TabWidget连成一片/ margin-left:4px; padding:4px; border-top-left-radius: 6px; border-top-right-radius: 6px; background:#ffffff; border:1px solid #d9d9d9; border-bottom:0px none; min-height:20px; } QTabBar::tab:selected { border-color: #9B9B9B; border-bottom-color: #00ffff; /* same as pane color */ margin-bottom:-1px; }
  • signal action only specific object

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • How to create a Calendar with newer QtQuick?

    Unsolved
    3
    0 Votes
    3 Posts
    480 Views
    KroMignonK
    @markusme said in How to create a Calendar with newer QtQuick?: How do I create a Calendar in newer (2.x) version of QtQuick?? Fresh install with Qt version 5.15 and nothing online works. Just huge amounts of old and outdated tutorials on the Qt website. Just to be sure, I hope your are talking about Qt Kit version not Qt Version used to build Qt Creator (like the screenshot posted by @Markkyboy ) Did you select the right kit in Qt Maintenance tool? For example for Windows 32 bits: [image: b24febf8-59fe-4cbb-a66e-c3ef8e5f06f1.png]
  • QQuickPaintedItem not update whole area.

    Solved qquickpaintedit qml qquickitem update
    2
    0 Votes
    2 Posts
    631 Views
    M
    I resolved it. It because of RenderTarget. I rollback it to default value.
  • Help with QML GridLayout RowSpan and ColumnSpan

    Unsolved
    5
    0 Votes
    5 Posts
    726 Views
    P
    @ndias Thank you, I've been beating my head! Don't know why the original doesn't work but I no longer care.
  • Font size mystery and the associated problems trying to create a GUI

    Unsolved
    1
    0 Votes
    1 Posts
    126 Views
    No one has replied
  • Quick, hopefully simple question. Open files list. How to get it back?

    Solved
    4
    0 Votes
    4 Posts
    418 Views
    sierdzioS
    @VFCraig said in Quick, hopefully simple question. Open files list. How to get it back?: Many thanks. Thought that was, as the suggestion implies, for splitting. As in giving me 2 views of the same file so I can look at different relevant sections without scrolling back and forth. Didn't think it meant opening panes with different functionality. You can choose to display the same thing if you want to. Click on the "up down" arrow on the left - there you can choose what will be displayed inside of that panel.
  • How to use the `Default` theme on Android

    Solved
    4
    0 Votes
    4 Posts
    658 Views
    Ben SB
    I was able to get it to work. I did have to switch to Qt6. I also needed to add a qtquickcontrols2.conf file to my project (e.g. in the qml.qrc file), and add this in: [Controls] Style=Basic
  • Custom ChartView

    Moved Unsolved
    4
    0 Votes
    4 Posts
    374 Views
    fcarneyF
    Look here. Maybe this one would work? Just make it 1 bar and make that fill the width?
  • PathView with few items change the positions

    Unsolved
    1
    0 Votes
    1 Posts
    155 Views
    No one has replied
  • Enable ListView Interactive in ScrollView

    Unsolved
    3
    0 Votes
    3 Posts
    340 Views
    Q
    @SGaist this is my code: ListView { id: leftFrameListView x: 10 spacing: 1 model: 10 interactive: true // Does not work delegate: Rectangle { id: listViewRect x: 20 width: leftFrameListView.width - 40 height: 60 radius: 15 color: "white" } }
  • hide scrollview mark

    Unsolved
    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • change default application toolbar color in qml

    Unsolved
    5
    0 Votes
    5 Posts
    471 Views
    Q
    @Markkyboy i know radius, now i want to use radius in applicationwindow
  • ListView renders phantom row after model reset

    Unsolved
    1
    0 Votes
    1 Posts
    155 Views
    No one has replied