Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Struggling to remove toolbar [N9]
Forum Updated to NodeBB v4.3 + New Features

Struggling to remove toolbar [N9]

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rcs1000
    wrote on last edited by
    #1

    Hello,

    I am trying to remove the toolbar from an (otherwise) working application. My QML looks like this:

    @import QtQuick 1.1
    import com.nokia.meego 1.0

    PageStackWindow {
    id: rootWindow
    initialPage: mainPage
    showStatusBar: false
    showToolBar: false

    Page {

        id: mainPage
        orientationLock: PageOrientation.LockPortrait
        ...QML describing the page here...
    

    @

    I have also tried to use this:
    @PageStackWindow {
    id: rootWindow
    initialPage: mainPage
    showStatusBar: false

    ToolBarLayout {
    id: commonTools
    visible: false
    }

    Page {

    tools: null
    id: mainPage
    orientationLock: PageOrientation.LockPortrait
    @

    But to no avail. I'm pulling my hair out: how do I remove the toolbar?

    Many thanks,

    Robert

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Reptile
      wrote on last edited by
      #2

      My template looks different than yours. Mine looks like this:

      @PageStackWindow {
      id: window
      initialPage: MainPage {tools: toolBarLayout}
      showStatusBar: false
      showToolBar: false@

      where the toolBarLayout is defined after this block. By commenting out the "{tools: toolBarLayout}" I'm able to get it to disappear.

      like so:

      @PageStackWindow {
      id: window
      initialPage: MainPage //{tools: toolBarLayout}
      showStatusBar: false
      showToolBar: false@

      probably not the most elegant solution :P let me know if you figure it out, thanks :)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rcs1000
        wrote on last edited by
        #3

        Reptile,

        Thanks for your response - and I actually just figured it out. I was starting my app running .show(), when I should have been using showFullScreen(). In showFullScreen() my code (and yours) actually does what it's supposed to do...

        Oh well, glad it's working now :-)

        Cheers, Robert

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yalnte
          wrote on last edited by
          #4

          rcs1000,

          Thanks very much for this - I was getting the toolbar in a non-QML application (just Qt and C++) and wasn't sure how to get rid of it.

          I replaced my show() and showMaximised() statements with showFullScreen() as you suggested and it works well.

          Thanks again!!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved